package com.quan.commons.config;

import com.quan.commons.log.DefaultLogPrinter;
import com.quan.commons.log.LogPrinter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日志输出类配置
 */
@Configuration
public class LogPrinterConfig {

    @ConditionalOnMissingBean(LogPrinter.class)
    @Bean
    public LogPrinter logPrinter() {
        return new DefaultLogPrinter();
    }
}
